Component({
    properties: {
        datas: {
            type: null
        },
        component_id: {
            type: null
        }
    },
    data: {
        emptyImage: "https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/image.png",
        openImage: "https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/open.png",
        clientWidth: "375",
        isFold: !1,
        iPnoneBottomBol: !1,
        showcarrfootBol: !0
    },
    lifetimes: {
        attached: function() {
            console.log(this.data.datas, "ddddddddddd12121");
        },
        moved: function() {},
        detached: function() {}
    },
    attached: function() {},
    ready: function() {
        this.getiPnoneBottom(), this.setData({
            clientWidth: wx.getSystemInfoSync().windowWidth
        });
    },
    pageLifetimes: {
        show: function() {},
        hide: function() {},
        resize: function() {}
    },
    methods: {
        getiPnoneBottom: function() {
            try {
                wx.getStorageSync("iPhoneBottom") && this.setData({
                    iPnoneBottomBol: !0
                });
            } catch (t) {}
        },
        toOpen: function() {
            this.setData({
                isFold: !this.data.isFold
            });
        },
        goimgurl: function(t) {
            var o = t.currentTarget.dataset.item;
            if (2 == o.is_minApp) if (o.gh_id) if (o.minApp_link) try {
                wx.navigateToMiniProgram({
                    appId: o.gh_id,
                    path: o.minApp_link,
                    extraData: {},
                    envVersion: "release",
                    success: function(t) {},
                    fail: function(t) {
                        wx.showToast({
                            title: "小程序跳转失败",
                            icon: "none",
                            duration: 2e3
                        });
                    }
                });
            } catch (t) {
                wx.showToast({
                    title: "小程序跳转失败",
                    icon: "none",
                    duration: 2e3
                });
            } else wx.showToast({
                title: "请设置跳转小程序后的跳转链接",
                icon: "none",
                duration: 2e3
            }); else wx.showToast({
                title: "请设置小程序所需跳转appId",
                icon: "none",
                duration: 2e3
            }); else if (3 == o.is_minApp) wx.makePhoneCall({
                phoneNumber: o.phone,
                success: function() {
                    console.log("拨打成功");
                },
                fail: function() {
                    console.log("拨打失败");
                }
            }); else if (4 == o.is_minApp) ; else if (5 == o.is_minApp) this.openQrCode("block", o.poster_id); else {
                var n = o.h5_link, e = {
                    mid: wx.getStorageSync("yz_uid")
                };
                try {
                    n.indexOf("pages/live-player-plugin") > 0 && (n += "&open_share_ticket=1&custom_params=".concat(encodeURIComponent(JSON.stringify(e)))), 
                    wx.navigateTo({
                        url: n
                    });
                } catch (t) {
                    wx.showToast({
                        title: "链接设置错误",
                        icon: "none",
                        duration: 2e3
                    });
                }
            }
        },
        openQrCode: function(t, o) {
            this.setData({
                isshow: !0,
                poster_id: o
            });
        },
        clicktapshow: function() {
            this.setData({
                isshow: !1,
                lsgow: !1
            });
        }
    }
});